 #确认服务开启
kubectl get services
kubectl get pods

#测试虚拟服务
  curl -s -I -HHost:httpbin.example.com "http://$INGRESS_HOST:$INGRESS_PORT/status/200"
  curl -s -I -HHost:httpbin.example.com "http://$INGRESS_HOST:$INGRESS_PORT/headers"

#检查httpbin服务
kubectl get svc -n istio-system
echo "INGRESS_HOST=$INGRESS_HOST, INGRESS_PORT=$INGRESS_PORT"

#删除服务
kubectl delete gateway httpbin-gateway
kubectl delete virtualservice httpbin

#测试连接
kubectl exec -it "$(kubectl get pod -l app=ratings -o jsonpath='{.items[0].metadata.name}')" -c ratings -- curl productpage:9080/productpage | grep -o "<title>.*</title>"

#确认路由规则开启
kubectl get destinationrules -o yaml